package com.zzyang.mybatis.jdbc.factory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2021/4/10 18:58
 */
public class DefaultInstanceFactory implements InstanceFactory {

    private static final Map<String, Class<?>> CLASS_CACHE = new ConcurrentHashMap<>();

    static {

    }

    private ExtensionFactory factory = SpringExtensionFactory.INSTANCE;

    @Override
    public <T> T getInstance(String name, Class<T> clazz) {
        return null;
    }

    public static void setClass(String name, Class clazz) {
        CLASS_CACHE.put(name, clazz);
    }

}
